<template>
  <img alt="Vue logo" src="./assets/logo.png">
  <HelloWorld msg="Welcome to Your Vue.js App"/>
  <div>
    <input
      v-model="inputValue"
      placeholder="请输入内容"
      class="big-input"
    />
  </div>
  <div>
    <span>{{ inputValue }}</span>
  </div>
  <div style="margin-top: 30px;">
    <button @click="clearInput">清除</button>
  </div>
</template>

<script>
import HelloWorld from './components/HelloWorld.vue'

export default {
  name: 'App',
  components: {
    HelloWorld
  },
  data() {
    return {
      inputValue: ''
    }
  },
  methods: {
    clearInput() {
      this.inputValue = ''
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
.big-input {
  width: 300px;
  height: 40px;
  font-size: 18px;
}
</style>
